package com.corgi.mybatis.modules.domain;

import com.corgi.mybatis.base.json.JacksonBinaryAesEncryptSerializer;
import com.corgi.mybatis.base.json.JacksonStringAesEncryptSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.util.Date;

/**
 * @title: Attachment
 * @description:
 * @author: dengmiao
 * @create: 2019-10-26 12:14
 **/
@Data
public class Attachment {

    private Long id;

    private String createBy;

    private Date createDate;

    private String updateBy;

    private Date updateDate;

    private Integer delFlag;

    @JsonSerialize(using = JacksonBinaryAesEncryptSerializer.class)
    private byte[] file;

    // @JsonSerialize(using = JacksonStringAesEncryptSerializer.class)
    private String fileHeader;

    private String fileName;

    private Double fileSize;
}
